package com.button.boot.multithread.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import com.button.boot.multithread.service.ThreadTaskService;

@Service
public class ThreadTaskServiceImpl implements ThreadTaskService{
    private static final Logger LOGGER = LoggerFactory.getLogger(ThreadTaskServiceImpl.class);
    
    @Override
    @Async
    public void executeAsyncTaskOne(int cnt) {
        LOGGER.info("executeAsyncTaskOne第{}次执行", cnt);
    }

    @Override
    @Async
    public void executeAsyncTaskTwo(int cnt) {
        LOGGER.info("executeAsyncTaskTwo第{}次执行", cnt);
    }

}
